<template>
  <View class="index">
    <Counter />
    <AtButton type='primary' @click="handleClick">按钮文案</AtButton>
  </View>
</template>


<script setup>
import './index.scss'
import Counter from '../../components/Counter.vue'
import Taro from '@tarojs/taro'
import { View } from '@tarojs/components'
import { AtButton } from 'taro-ui-vue'

const handleClick = () => {
  Taro.showToast({
    title: '按钮被点击',
    icon: 'success'
  })
}
</script>



